using System;
using GeneXus.Builder;
using System.IO;
public class bldDevelopermenu : GxBaseBuilder
{
   string cs_path = "." ;
   public bldDevelopermenu( ) : base()
   {
   }

   public override int BeforeCompile( )
   {
      return 0 ;
   }

   public override int AfterCompile( )
   {
      int ErrCode ;
      ErrCode = 0 ;
      if ( ! File.Exists(@"bin\client.exe.config") || checkTime(@"bin\client.exe.config",cs_path + @"\client.exe.config") )
      {
         File.Copy( cs_path + @"\client.exe.config", @"bin\client.exe.config", true);
      }
      return ErrCode ;
   }

   static public int Main( string[] args )
   {
      bldDevelopermenu x = new bldDevelopermenu() ;
      x.SetMainSourceFile( "bldDevelopermenu.cs");
      x.LoadVariables( args);
      return x.CompileAll( );
   }

   public override ItemCollection GetSortedBuildList( )
   {
      ItemCollection sc = new ItemCollection() ;
      sc.Add( @"bin\GeneXus.Programs.Common.dll", cs_path + @"\GeneXus.Programs.Common.rsp");
      return sc ;
   }

   public override ItemCollection GetRuntimeBuildList( )
   {
      ItemCollection sc = new ItemCollection() ;
      sc.Add( @"bin\arankingperiodista.dll", cs_path + @"\arankingperiodista.rsp");
      sc.Add( @"bin\apremiados.dll", cs_path + @"\apremiados.rsp");
      sc.Add( @"bin\apunto2listado.dll", cs_path + @"\apunto2listado.rsp");
      sc.Add( @"bin\apunto4listado.dll", cs_path + @"\apunto4listado.rsp");
      sc.Add( @"bin\wppunto5.dll", cs_path + @"\wppunto5.rsp");
      sc.Add( @"bin\wppunto6.dll", cs_path + @"\wppunto6.rsp");
      sc.Add( @"bin\publicidadpublicidadwc.dll", cs_path + @"\publicidadpublicidadwc.rsp");
      sc.Add( @"bin\publicidadpcostowc.dll", cs_path + @"\publicidadpcostowc.rsp");
      sc.Add( @"bin\publicidadgeneral.dll", cs_path + @"\publicidadgeneral.rsp");
      sc.Add( @"bin\wwpublicidad.dll", cs_path + @"\wwpublicidad.rsp");
      sc.Add( @"bin\viewpublicidad.dll", cs_path + @"\viewpublicidad.rsp");
      sc.Add( @"bin\guiapublicidadwc.dll", cs_path + @"\guiapublicidadwc.rsp");
      sc.Add( @"bin\guiageneral.dll", cs_path + @"\guiageneral.rsp");
      sc.Add( @"bin\wwguia.dll", cs_path + @"\wwguia.rsp");
      sc.Add( @"bin\viewguia.dll", cs_path + @"\viewguia.rsp");
      sc.Add( @"bin\tiponoticianoticiawc.dll", cs_path + @"\tiponoticianoticiawc.rsp");
      sc.Add( @"bin\tiponoticiageneral.dll", cs_path + @"\tiponoticiageneral.rsp");
      sc.Add( @"bin\wwtiponoticia.dll", cs_path + @"\wwtiponoticia.rsp");
      sc.Add( @"bin\viewtiponoticia.dll", cs_path + @"\viewtiponoticia.rsp");
      sc.Add( @"bin\periodistanoticiawc.dll", cs_path + @"\periodistanoticiawc.rsp");
      sc.Add( @"bin\periodistaguia1wc.dll", cs_path + @"\periodistaguia1wc.rsp");
      sc.Add( @"bin\periodistaguiawc.dll", cs_path + @"\periodistaguiawc.rsp");
      sc.Add( @"bin\periodistacarnewc.dll", cs_path + @"\periodistacarnewc.rsp");
      sc.Add( @"bin\periodistageneral.dll", cs_path + @"\periodistageneral.rsp");
      sc.Add( @"bin\wwperiodista.dll", cs_path + @"\wwperiodista.rsp");
      sc.Add( @"bin\viewperiodista.dll", cs_path + @"\viewperiodista.rsp");
      sc.Add( @"bin\periodicogeneral.dll", cs_path + @"\periodicogeneral.rsp");
      sc.Add( @"bin\wwperiodico.dll", cs_path + @"\wwperiodico.rsp");
      sc.Add( @"bin\viewperiodico.dll", cs_path + @"\viewperiodico.rsp");
      sc.Add( @"bin\paisagenciawc.dll", cs_path + @"\paisagenciawc.rsp");
      sc.Add( @"bin\paisgeneral.dll", cs_path + @"\paisgeneral.rsp");
      sc.Add( @"bin\wwpais.dll", cs_path + @"\wwpais.rsp");
      sc.Add( @"bin\viewpais.dll", cs_path + @"\viewpais.rsp");
      sc.Add( @"bin\carnegeneral.dll", cs_path + @"\carnegeneral.rsp");
      sc.Add( @"bin\wwcarne.dll", cs_path + @"\wwcarne.rsp");
      sc.Add( @"bin\viewcarne.dll", cs_path + @"\viewcarne.rsp");
      sc.Add( @"bin\agencianoticiawc.dll", cs_path + @"\agencianoticiawc.rsp");
      sc.Add( @"bin\agenciageneral.dll", cs_path + @"\agenciageneral.rsp");
      sc.Add( @"bin\wwagencia.dll", cs_path + @"\wwagencia.rsp");
      sc.Add( @"bin\viewagencia.dll", cs_path + @"\viewagencia.rsp");
      sc.Add( @"bin\noticiageneral.dll", cs_path + @"\noticiageneral.rsp");
      sc.Add( @"bin\wwnoticia.dll", cs_path + @"\wwnoticia.rsp");
      sc.Add( @"bin\viewnoticia.dll", cs_path + @"\viewnoticia.rsp");
      sc.Add( @"bin\appmastersd.dll", cs_path + @"\appmastersd.rsp");
      sc.Add( @"bin\tabbedview.dll", cs_path + @"\tabbedview.rsp");
      sc.Add( @"bin\home.dll", cs_path + @"\home.rsp");
      sc.Add( @"bin\notauthorized.dll", cs_path + @"\notauthorized.rsp");
      sc.Add( @"bin\gx00c1.dll", cs_path + @"\gx00c1.rsp");
      sc.Add( @"bin\gx00b0.dll", cs_path + @"\gx00b0.rsp");
      sc.Add( @"bin\gx00a0.dll", cs_path + @"\gx00a0.rsp");
      sc.Add( @"bin\gx0090.dll", cs_path + @"\gx0090.rsp");
      sc.Add( @"bin\gx0080.dll", cs_path + @"\gx0080.rsp");
      sc.Add( @"bin\gx0071.dll", cs_path + @"\gx0071.rsp");
      sc.Add( @"bin\gx0060.dll", cs_path + @"\gx0060.rsp");
      sc.Add( @"bin\gx0050.dll", cs_path + @"\gx0050.rsp");
      sc.Add( @"bin\gx0040.dll", cs_path + @"\gx0040.rsp");
      sc.Add( @"bin\gx0030.dll", cs_path + @"\gx0030.rsp");
      sc.Add( @"bin\gx0010.dll", cs_path + @"\gx0010.rsp");
      sc.Add( @"bin\promptmasterpage.dll", cs_path + @"\promptmasterpage.rsp");
      sc.Add( @"bin\recentlinks.dll", cs_path + @"\recentlinks.rsp");
      sc.Add( @"bin\appmasterpage.dll", cs_path + @"\appmasterpage.rsp");
      sc.Add( @"bin\noticia.dll", cs_path + @"\noticia.rsp");
      sc.Add( @"bin\agencia.dll", cs_path + @"\agencia.rsp");
      sc.Add( @"bin\guia.dll", cs_path + @"\guia.rsp");
      sc.Add( @"bin\publicidad.dll", cs_path + @"\publicidad.rsp");
      sc.Add( @"bin\periodico.dll", cs_path + @"\periodico.rsp");
      sc.Add( @"bin\tiponoticia.dll", cs_path + @"\tiponoticia.rsp");
      sc.Add( @"bin\carne.dll", cs_path + @"\carne.rsp");
      sc.Add( @"bin\periodista.dll", cs_path + @"\periodista.rsp");
      sc.Add( @"bin\pais.dll", cs_path + @"\pais.rsp");
      return sc ;
   }

   public override ItemCollection GetResBuildList( )
   {
      ItemCollection sc = new ItemCollection() ;
      sc.Add( @"bin\messages.spa.dll", cs_path + @"\messages.spa.txt");
      return sc ;
   }

   public override bool ToBuild( String obj )
   {
      if (checkTime(obj, cs_path + @"\bin\GxClasses.dll" ))
         return true;
      if ( obj == @"bin\GeneXus.Programs.Common.dll" )
      {
         if (checkTime(obj, cs_path + @"\type_SdtMessages_Message.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtLinkList_LinkItem.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtContext.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtGridState.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtGridState_FilterValue.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtProgramNames_ProgramName.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtTabOptions_TabOptionsItem.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtTransactionContext.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtTransactionContext_Attribute.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtSDTRanking.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GxObjectCollection.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GxSilentTrnGridCollection.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\SoapParm.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GxWebStd.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GxFullTextSearchReindexer.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GxModelInfoProvider.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtPeriodista.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtCarne.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINTrnMode.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINRecentLinksOptions.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINPage.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINMessageTypes.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINIMEMode.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINHttpMethod.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINEncoding.cs" ))
            return true;
      }
      if ( obj == @"bin\messages.spa.dll" )
      {
         if (checkTime(obj, cs_path + @"\messages.spa.txt" ))
            return true;
      }
      return false ;
   }

}

